package com.test1231;

public class MemberA extends Member {
    private double wage;


    public MemberA(double wage) {
        this.wage = wage;
    }

    public MemberA(String name, CompanyA com, double wage) {
        super(name, com);
        this.wage = wage;
    }

    public MemberA(String name, double wage) {
        super(name);
        this.wage = wage;
    }

    public double getWage() {
        return wage;
    }

    public void setWage(double wage) {
        this.wage = wage;
    }


    @Override
    public String toString() {
        return  super.toString() +
                "合同工资：" + wage ;

    }
}
